const TOKENLINE = 'top-line-token'
// 保存token
const saveToken = toknObj => {
  window.localStorage.setItem(TOKENLINE, JSON.stringify(toknObj))
}
// 删除token
const removeToken = () => {
  window.localStorage.removeItem(TOKENLINE)
}
// 获取token
const getToken = () => {
  return JSON.parse(window.localStorage.getItem(TOKENLINE))
}

// 暴露出去
export { saveToken, removeToken, getToken }
